<style>
    .pointer-disable{
        pointer-events: none;
    }
</style>

<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" {:$isSuperAdmin?'':'data-rule="required"'}>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Investment_total')}(亿元):</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input class="form-control " id="investment_total" name="row[investment_total]" type="text" placeholder="请填写总投资(亿)" value="" onkeyup="clearNoNum(this)"  {:$isSuperAdmin?'':'data-rule="required"'}>
                <span class="input-group-addon">
                    <input type="checkbox" class="pending" data-id="investment_total" id="N402255806403">待定
                </span>
                <span class="msg-box n-right" style="display: none;"></span>
            </div>
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Summary')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-summary" class="form-control " rows="5" name="row[summary]" cols="50" {:$isSuperAdmin?'':'data-rule="required"'}></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Progression')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-progression" class="form-control " rows="5" name="row[progression]" cols="50" {:$isSuperAdmin?'':'data-rule="required"'}></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Problem')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-problem" class="form-control " rows="5" name="row[problem]" cols="50" {:$isSuperAdmin?'':'data-rule="required"'}></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Next_measure')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-next_measure" class="form-control " rows="5" name="row[next_measure]" cols="50" {:$isSuperAdmin?'':'data-rule="required"'}></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Access_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-access_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[access_time]" type="text" value="">
        </div>
    </div>

<!--     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sign_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sign_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[sign_time]" type="text" value="">
        </div>
    </div> -->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>投资方地区:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" id="name" name="row[investment_area]" type="text" placeholder="请填写投资方地区" value="" {:$isSuperAdmin?'':'data-rule="required"'}>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Receive_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[receive_time]" type="text" value="" {:$isSuperAdmin?'':'data-rule="required"'}>
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Register_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-register_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[register_time]" type="text" value="" data-rule="required">
        </div>
    </div> -->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>责任单位:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                {if $isSuperAdmin}
                {:build_select('row[chargedep_ids][]',$chargeDeps,[],['id'=>"chargedep_ids",'multiple'=>true,'class'=>'form-control selectpicker'])}
                {else/}
                {:build_select('row[chargedep_ids][]',$chargeDeps,[],['id'=>"chargedep_ids",'multiple'=>true,'class'=>'form-control selectpicker','data-rule'=>'required'])}
                {/if}
                <span class="input-group-addon">
                    <input type="checkbox" class="pending" data-type="select" data-id="chargedep_ids" id="N402255806405">待定
                </span>
                <span class="msg-box n-right" style="display: none;"></span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Settle_street_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                {if $isSuperAdmin}
                {:build_select('row[settle_street_ids][]',$streets,[],['id'=>"settle_street_ids",'multiple'=>true,'class'=>'form-control selectpicker'])}                
                {else/}
                {:build_select('row[settle_street_ids][]',$streets,[],['id'=>"settle_street_ids",'multiple'=>true,'class'=>'form-control selectpicker','data-rule'=>'required'])}
                {/if}

                <span class="input-group-addon">
                    <input type="checkbox" class="pending" data-type="select" data-id="settle_street_ids" id="N402255806404">待定
                </span>
                <span class="msg-box n-right" style="display: none;"></span>
            </div>
        </div>

    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Leader_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $isSuperAdmin}
            {:build_select('row[leader_ids][]',$leaders,[],['id'=>"leader_ids",'multiple'=>true,'class'=>'form-control selectpicker'])}
            {else/}
            {:build_select('row[leader_ids][]',$leaders,[],['id'=>"leader_ids",'multiple'=>true,'class'=>'form-control selectpicker','data-rule'=>'required'])}
            {/if}
            
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('Centraloffice_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $isSuperAdmin}
            {:build_select('row[centraloffice_id][]',$centraloffices,[],['id'=>"centraloffice_id",'multiple'=>true,'class'=>'form-control selectpicker'])}
            {else/}
            {:build_select('row[centraloffice_id][]',$centraloffices,[],['id'=>"centraloffice_id",'multiple'=>true,'class'=>'form-control selectpicker','data-rule'=>'required'])}
            {/if}            
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>{:__('科室责任人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_name" class="form-control" name="row[contact_name]" type="text" data-rule="required" placeholder="请填写科室责任人">
        </div>
    </div>


    <input type="hidden" name="row[record]" value="1">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">本次接洽记录接洽新项目</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_new]',[0=>'否',1=>'是'],1,['class'=>'form-control is_new'])}

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>当前阶段:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[state]',[null=>'请选择','终止'=>'终止','暂停'=>'暂停','在谈'=>'在谈','框架'=>'框架','正式'=>'正式','注册'=>'注册','开工'=>'开工','运营'=>'运营'],[],['id'=>"state",'class'=>'form-control','data-rule'=>'required'])}
        </div>
    </div>


    <div class="form-group stop_reason_d hide">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>终止原因:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea  class="form-control" id="stop_reason" name="row[stop_reason]" rows="5" cols="50" placeholder="请填写终止原因"></textarea>
        </div>
    </div>

<!--    <div class="form-group stop_reason_d hide">-->
<!--        <label class="control-label col-xs-12 col-sm-2">终止时间:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input class="form-control datetimepicker"  type="text" id="stop_time" name="row[stop_time]"  data-date-format="YYYY-MM-DD" placeholder="请填写终止时间" value="">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group state_time framework_agreement_d hide">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>框架协议时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control datetimepicker"  type="text" id="framework_agreement_time" name="row[framework_agreement_time]"  data-date-format="YYYY-MM-DD" placeholder="请填写框架协议时间" value="">
        </div>
    </div>

    <div class="form-group state_time invesment_agreement_d hide">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>正式协议时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control datetimepicker"  type="text" id="invesment_agreement_time" name="row[invesment_agreement_time]"  data-date-format="YYYY-MM-DD" placeholder="请填写正式协议时间" value="">
        </div>
    </div>

    <div class="form-group state_time register_d hide">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>注册时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control datetimepicker"  type="text" id="register_time" name="row[register_time]"  data-date-format="YYYY-MM-DD" data-use-current="true" placeholder="请填写注册时间" value="">
        </div>
    </div>

    <div class="form-group state_time start_construction_d hide">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>开工时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control datetimepicker"  type="text" id="start_construction_time" name="row[start_construction_time]"  data-date-format="YYYY-MM-DD" data-use-current="true" placeholder="请填写开工时间" value="">
        </div>
    </div>


    <div class="form-group state_time operation_time_d hide">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>运营时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control datetimepicker"  type="text" id="operation_time" name="row[operation_time]"  data-date-format="YYYY-MM-DD" data-use-current="true" placeholder="请填写运营时间" value="">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
